<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户中心</title>
    <script th:src="@{/static/js/jquery/jquery.js}"></script>
</head>
<body>
    <div style="color: #009688"><span>用户列表</span></div>
    <div>
        <ul>
            <li th:each="user:${userList}">
                <span th:text="${user.id}"></span>-
                <span th:text="${user.name}"></span>-
                <span th:text="${user.title}"></span>-
                <span th:text="${user.worknum}"></span>
                <span th:text="${user.department}"></span>-
                <span th:text="${user.emailaddr}"></span>
            </li>
            <div style="height: 70px"> <a href="/task/list">发起任务</a></div>
        </ul>
    </div>
</body>
<script>
    // $(function () {
    //     $.get(
    //         "/user/list",
    //         function (data) {
    //             console.log(data)
    //         },
    //         "json"
    //     );
    // })
</script>
</html>